StrictlyPositiveInt
@SinceKotoolsTypes(version = "1.1")
Represents strictly positive integers, excluding 0
.
Constructors
Link copied to clipboard
Returns the value as a strictly positive int, or throws an IllegalArgumentException if the value is negative.
Types
Functions
Link copied to clipboard
Divides this value by the other value, truncating the result to an integer that is closer to 0
. Throws an ArithmeticException if the other value equals 0
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns this value as a non-zero int.
Link copied to clipboard
Returns the string representation of this value as a not blank string.
Link copied to clipboard
Returns this value as a positive int.
Link copied to clipboard
Returns the negative of this value.
Link copied to clipboard
Returns this value.